package com.hs.shirodemo2.service;

import com.hs.shirodemo2.entity.SysPermission;
import com.hs.shirodemo2.entity.TreeSelect;

import java.util.List;

/**
 * 返回前端所需的属性结构
 * 权限表需要有parent_id字段    实体类需要有List<TbPermission> children 属性来做辅助
 * @ClassName MenuService
 * @DescriptioSys*/
public interface MenuService {

    List<SysPermission> buildMenuTree(List<SysPermission> menus);
    List<TreeSelect> buildMenuTreeSelect(List<SysPermission> menus);
}
